
from typing import List
import os
import datetime
from PIL import Image
import numpy as np

class LineOfString:
   
    def __init__(self):
        pass
    
    @classmethod
    def INPUT_TYPES(cls):
        return {"required":
               {   
                "multiline_text": ('STRING', {}),
              }
        }

    RETURN_TYPES = ("INT",)
    RETURN_NAMES = ("lineCount",)
    OUTPUT_NODE = True
    FUNCTION = "sample"
    CATEGORY = "CXH"

    def sample(self,multiline_text):
        line_count = len(multiline_text.splitlines())
        return (line_count,)